﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VideoSystem;

namespace VideoSystem
{
    // This class is the controller class which takes care of all reads and writes of the Option Class
    public class OptionCtrl
    {
        IOptionDb optionDb = new OptionDb();
       


        // This method creates a new Option class
        public int CreateOption(int episodeId, string option1Text, string option2Text)
        {
            Option opt = new Option(episodeId, option1Text, option2Text);
            int result = optionDb.InsertOption(opt);
            return result;
        }

        public Option GetOptionForId(int episodeId)
        {
            Option opt = optionDb.GetOptionsForId(episodeId);
            return opt;
        }
    }
}
